package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.UserDto;
import com.zzyl.entity.User;
import com.zzyl.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from sys_user where username = #{username}")
    UserVo selectByUsername(String username);

    List<String> queryResourcesUrl(Long id);

    void insert(User user);

    Page<UserVo> page(UserDto userDto);
}
